package com.huiyujiaoyu.http;

/**
 * Created by yujunlong on 2017/4/18.
 */

public class HttpApi {
    //  public final static String BASE_URL = "http://121.199.57.142:8091/";
    public final static String BASE_URL = "http://api.nlsgapp.com/";
    public final static String OTHERBASE_URL = BASE_URL + "/storage/";

    //上传下载
    public static final String HTTP_APK = BASE_URL + "api/{end_url}";

    public static final String API_UPLOADFILE = "api/file/{versionName}/android/uploadFile.json";



    /*用户登录模块接口*/
    //1.1获取验证码
    public static final String API_GETVERIFICATIONCODE = "user/sendsms";
    public static final int HTTP_GETVERIFICATIONCODE = 10001;
    //登录
    public static final String API_LOGIN = "user/login";
    public static final int HTTP_LOGIN  = 10002;
    //修改用户信息
    public static final String API_UPDATE = "user/update";
    public static final int HTTP_UPDATE  = 10003;
    //热门
    public static final String API_HOT = "site/hot";
    public static final int HTTP_HOT  = 10005;
    //首页
    public static final String API_INDEX = "site/index";
    public static final int HTTP_INDEX  = 10004;
    //热门头条
    public static final String API_HEADLINES = "site/headlines";
    public static final int HTTP_HEADLINES  = 10006;
    //详情
    public static final String API_VIEW = "work/view";
    public static final int HTTP_VIEW  = 10007;
    //章节
    public static final String API_CHAPTERS = "work/chapters";
    public static final int HTTP_CHAPTERS  = 10008;
    //评论
    public static final String API_COMMENT_INDEX = "comment/index";
    public static final int HTTP_COMMENT_INDEX  = 10009;
    //收藏
    public static final String API_COLLECT= "api/user/collect";
    public static final int HTTP_COLLECT  = 10009;
    //发表评论
    public static final String API_COM_ADD= "comment/add";
    public static final int HTTP_COM_ADD  = 100010;
    //专栏首页数据
    public static final String API_COL_INDEX= "column/index";
    public static final int HTTP_COL_INDEX  = 100011;
    //发现
    public static final String API_FIND= "work/find";
    public static final int HTTP_FIND = 100012;
    //热词
    public static final String API_HOTKEYS= "search/hotkeys";
    public static final int HTTP_HOTKEYS = 100013;
    //搜索的
    public static final String API_KEYWORDSS= "search/keywordss";
    public static final int HTTP_KEYWORDSS= 100014;
    //我的
    public static final String API_USERINFO= "user/userinfo";
    public static final int HTTP_USERINFO= 100015;
    //我的消息
    public static final String API_MESSAGES= "messages/index";
    public static final int HTTP_MESSAGES= 100016;
    //上传图片
    public static final String API_UPLOADIMG= "user/upload-headimg";
    public static final int HTTP_UPLOADIMG= 100017;
    //验证验证码
    public static final String API_YZYZM= "user/update-phone";
    public static final int HTTP_YZYZM= 100018;
    //我的订阅
    public static final String API_COLUMN= "order/column";
    public static final int HTTP_COLUMN= 100019;
    //我的收藏
    public static final String API_COLLECTION= "user/collections";
    public static final int HTTP_COLLECTION= 100020;
    //我的优惠券
    public static final String API_COUPONS= "coupons/index";
    public static final int HTTP_COUPONS= 100021;

    //购买
    public static final String API_BUYCOLUMN= "order/buycolumn";
    public static final int HTTP_BUYCOLUMN= 100022;

    //积分
    public static final String API_SCORE_LIST= "user/score-list";
    public static final int HTTP_SCORE_LIST= 100023;
    //意见反馈
    public static final String API_FEEDBACK= "site/feedback";
    public static final int HTTP_FEEDBACK= 100024;
}
